Skip to content

chore: synchronize with pyproject-template#3

Merged
endavis merged 8 commits intomainfrom
chore/2-sync-pyproject-template
Jan 30, 2026
Merged

chore: synchronize with pyproject-template#3
endavis merged 8 commits intomainfrom
chore/2-sync-pyproject-template

Conversation

@endavis
Copy link
Owner

@endavis endavis commented Jan 30, 2026

Summary

  • Add template management tools (tools/pyproject_template/)
  • Migrate doit tasks to modular structure (tools/doit/)
  • Add missing workflows (breaking-change-detection, pr-checks, merge-gate)
  • Update CI workflow with dynamic Python version matrix
  • Update pre-commit with enhanced hooks (conventional commits, branch name checks, no-commit-to-main)
  • Add pyright, vulture, radon, griffe to dev dependencies
  • Add pyright and vulture configurations to pyproject.toml
  • Remove debug pprint statements from init.py
  • Add Claude Code hooks for command safety (block-dangerous-commands.py)

Test plan

  • doit check passes
  • doit list shows all tasks
  • doit test passes
  • Pre-commit hooks run successfully

Closes #2

Generated with Claude Code

endavis and others added 8 commits January 30, 2026 15:23
- Add template management tools (tools/pyproject_template/)
- Migrate doit tasks to modular structure (tools/doit/)
- Add missing workflows (breaking-change-detection, pr-checks, merge-gate)
- Update CI workflow with dynamic Python version matrix
- Update pre-commit with enhanced hooks (conventional commits, branch name
  checks, no-commit-to-main)
- Add pyright, vulture, radon, griffe to dev dependencies
- Add pyright and vulture configurations to pyproject.toml
- Remove debug pprint statements from __init__.py

Closes #2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add block-dangerous-commands.py hook to prevent:
  - Dangerous flags (--admin, --no-verify, --hard)
  - Force push to protected branches
  - Deletion of protected branches
  - Merge commits on protected branches
  - Blocked workflow commands (direct gh commands)
  - Governance labels (ready-to-merge)
- Add .claude/settings.json with PreToolUse hook configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Skip bandit rules for pre-existing code patterns:
- B301, B403: pickle usage in persistentdict.py
- B606: os.execv in proxy restart
- B608: SQL string construction in sqlite.py

These are existing patterns that should be addressed in separate PRs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Skip B307 for eval() usage in test plugins.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add ignore words for pre-existing code:
- Telnet protocol terms (WONT)
- Variable/method names (acn, formt, unitialize)
- Historical typos to be fixed separately

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add .uv-cache to norecursedirs to prevent pytest from collecting
tests from cached packages in CI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The bastproxy package requires BASTPROXY_HOME to be set for imports.
Create the directory before running tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The checkout action clears the workspace, so the directory needs to be
created after checkout, not before.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@endavis endavis merged commit c410d09 into main Jan 30, 2026
12 of 13 checks passed
@endavis endavis deleted the chore/2-sync-pyproject-template branch January 30, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: synchronize with latest pyproject-template

1 participant